package com.ishare.api.po.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

/**
 * @author 李嘉宾
 */
@Data
@ApiModel(description = "用户获取邮箱验证码提交参数")
public class UserGetEmailCodeParam {

    /**
     * 邮箱
     */
    @NotEmpty(message = "邮箱不能为空")
    @ApiParam(value = "邮箱")
    @Email(message = "请输入正确的邮箱格式",regexp = "^([a-zA-Z0-9]+[_|\\_|\\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\\_|\\.]?)*[a-zA-Z0-9]+\\.[a-zA-Z]{2,3}$")
    private String email;
}
